package me.like.diandian.base;

import java.io.Serializable;

/**
 * Created by shousakai on 2018/4/2.
 */

public class BaseModel<T> implements Serializable {

    private String respCode;
    private String respMessage;

    public String getCode() {
        return respCode;
    }

    public void setCode(String respCode) {
        this.respCode = respCode;
    }

    public String getMsg() {
        return respMessage;
    }

    public void setMsg(String respMessage) {
        this.respMessage = respMessage;
    }

    public T getData() {
        return respResult;
    }

    public void setData(T respResult) {
        this.respResult = respResult;
    }

    private T respResult;

    public boolean isSuccess() {
        return respCode.equals("0000");
    }
}
